package com.macbulldev.poc.testgin.service;

import javax.servlet.http.HttpSession;

import org.springframework.security.core.context.SecurityContext;

import com.macbulldev.poc.testgin.domain.AppUser;


public class WebappUtils 
{
	public static AppUser getAuthenticationObject(HttpSession session)
	{
		return (AppUser)((SecurityContext)session.getAttribute("SPRING_SECURITY_CONTEXT")).getAuthentication();
	}
}
